﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestHotNews.aspx.cs" Inherits="WebApp1.AdminSection.TestHotNews" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head runat="server">
    <title></title>

        <link rel="stylesheet" type="text/css" href='/content/site.css?v=1.0.0.7.3'>
    <link href="/content/css/bootstrap.css?v=1.0.0.7.3" rel="stylesheet">
    <link href="/content/css/bootstrap-responsive.css?v=1.0.0.7.3" rel="stylesheet">
 
    <link href='http://fonts.googleapis.com/css?family=Andika' rel='stylesheet' type='text/css'>
    <script src="/content/js/jquery.js?v=1.0.0.7.3" type="text/javascript"></script>
    <script src="/content/js/global.js?v=1.0.0.7.3" type="text/javascript"></script>
    <script src="/content/js/jquery.cookie.js?v=1.0.0.7.3" type="text/javascript"></script>

    <script type="text/javascript">
        jQuery(document).ready(function ($) {

            $("select").change(function () {
                $("#txtSearchBox").text("");
            });

            $(".catact").click(function () {

                var url = "/websiteinfo/AddKeyWord/";

                var params = {
                    category: $(this).text(),
                    keyword: $(this).attr("kw")
                };

                url += "?" + $.param(params);

                var jqxhr = $.ajax(url).done(function (msg) {
                    //alert("Success..." + msg);
                }).fail(function (msg) { alert("Error...." + msg); });

                $(this).closest("td").html("Selected...");
                //$(this).closest("tr").remove();
                return false;

                //                $(this).closest("tr").remove(); // remove row
                //                //return false; 

            });


        });

    </script>

</head>
<body style="margin:10px;">
    <form id="form1" runat="server">
    <div>
    <table>

      <tr>
     
    <td>
    Select category
    </td>
    <td>
        <asp:DropDownList ID="cmbCategoryName" runat="server" AutoPostBack="True" 
            onselectedindexchanged="cmbCategoryName_SelectedIndexChanged">
        </asp:DropDownList>
    </td>
    <td>
    <asp:Button ID="btnGetKeyWords" CssClass="btn btn-primary" Text="Get" 
            runat="server" onclick="btnGetKeyWords_Click" />
    </td>
   
    <td>
    <asp:Label ID="lblSelectedCategory" runat="server" style="font-size:16px;color:green;"></asp:Label>
    </td>
    </tr>

    <tr>
    <td>search text please:</td>
    <td style="width:80%">
      <asp:TextBox ID="txtSearchBox" runat="server" Rows="10" TextMode="MultiLine" style="font-size:18px;color:#b00;"
            Height="300px" Width="95%"></asp:TextBox>
    </td>
    </tr>

    <tr>
    <td>Field name</td>
    <td>
    <asp:TextBox ID="txtFieldName" runat="server" Text="titlelink"></asp:TextBox>
    </td>
    </tr>

     <tr>
    <td>Context Query:</td>
    <td>
    <asp:TextBox ID="txtGlobalFilter" runat="server"></asp:TextBox>
    </td>
    </tr>

    <tr>
    <td>Max records</td>
    <td>
    <asp:TextBox ID="txtMaxRecords" runat="server" Text="500"></asp:TextBox>
    </td>
    </tr>
    
    </table>
    <input type="submit" value="Search" />  
    

    </div>
    </form>
</body>
</html>
